package com.xjtu.chapter04.ex4_2;

/**
 * @author yjq
 * @version 1.0
 * @date 2021/8/13 20:26
 */
public class Bike {
    int colornum;
    int brand;
    int speed;
    public void speedUp(){
        speed = 0;
        System.out.println("too slow ...");
    }
    public void pressHorn(){
        System.out.println("beep ...");
    }
    //构造方法
    Bike(){
        System.out.println("call Bike constructor");
    }
}
